{extends file="index.tpl"}
{block name="scripts"}
    <script type="text/javascript" src="{$webPrefix}www/jquery/js/jquery.js">/* */</script>
    <script type="text/javascript" src="{$webPrefix}www/js/Yz.js">/* */</script>
<!--    <script type="text/javascript" src="{$webPrefix}www/js/Yz.Upload.js">/* */</script> -->
    <script type="text/javascript">
    $(function() {
    })
    </script>
{/block}
{block name="content"}
        <form name="theForm" enctype="multipart/form-data" action="{$webPrefix}uploads/upload/"
                target="yz-uploads-frame" method="POST">
            File: <input type="file" name="theUpload" />
            <br/>
            <input type="submit" value="Upload" />
        </form>
        {literal}
        <a href="#" onclick="(new Yz.Upload({formName: 'theForm', inputName: 'theUpload'})).submit();return false">загрузить</a>
        {/literal}
        <iframe name="yz-uploads-frame"
            id="yz-uploads-frame"
            src="about:blank"
            title="yz-uploads-frame"
            style="border: 1px solid red; width: 800px; height: 200px"
        ></iframe>
        <p>
        <a href="{$webPrefix}users/logout">Log out?</a>
        <a href="{$webPrefix}users/login">Log in?</a>
        </p>
{/block}
